QRIS Generate List
Service ini digunakan mendaptkan data dari list QRIS yang pernah di buat oleh merchant
Service Info
HTTP Method | POST |
---|---|
Service Code | 90 |
Http Method | POST |
Path | .../v1.0/qr/qr-generate-list |
Authentication | OAuth 2.0 |
Header
Header Name | Tipe Data | Wajib | Deskripsi |
---|---|---|---|
Content-Type | String | Y | application/json |
X-TIMESTAMP | String | Y | Waktu lokal klien saat ini yyyy-MM-ddTHH:mm:ss.SSSTZD format |
X-PARTNER-ID | String | Y | Client’s client_id (diberikan pada saat onboarding ) |
X-CHANNEL-ID | String | Y | ID channel merchant |
X-SIGNATURE | String | Y | Dibuat dengan algoritma asymmetric with token : Signature Generation |
X-EXTERNAL-ID | String | Y | ID external merchant (tidak boleh sama di hari yang sama) |
Body
Nama Field | Tipe Data | Wajib | Deskripsi |
---|---|---|---|
dateGenerate | String | Y | Tanggal Dari Pembuatan QRIS |
additionalInfo | Object | Y | Informasi tambahan yang di perlukan |
merchantId | String | Y | Kode unik yang dimiliki setiap merchant |
- JSON
- CURL
- PHP
- NODE JS
- GO
{
"dateGenerate" : "2024-03-15T00:00:00+07:00",
"additionalInfo": {
"merchantId" : "121xxxx"
}
}
curl --location --request POST '../v1.0/qr/qr-mpm-generate-list' \
--header 'x-client-key: 6c57db4e-9e11-4951-9bcf-d6f177dafbcc' \
--header 'x-timestamp: 2024-01-16T10:54:21+07:00' \
--header 'x-signature: Daaad/WOCbN0cdFdd9wXJUaJxeEeodDANqrlKYaw98MSZLdInfIGPLxIFxqROb2dnbI/FEqeSwKWdX9Hn0X/1g==' \
--header 'x-partner-id: 6c57db4e-9e11-4951-9bcf-d6f177dafbcc' \
--header 'channel-id: 23412' \
--header 'x-external-id: 2024-05-15T07:51:56.710Z' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 6430fe8b-79d5-4e58-a337-6eb498e117a5' \
--data-raw '{
"dateGenerate": "2024-03-15T00:00:00+07:00",
"additionalInfo": {
"merchantId": "121xxxx"
}
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '../v1.0/qr/qr-mpm-generate-list',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"dateGenerate": "2024-03-15T00:00:00+07:00",
"additionalInfo": {
"merchantId": "121xxxx"
}
}',
CURLOPT_HTTPHEADER => array(
'x-client-key: 6c57db4e-9e11-4951-9bcf-d6f177dafbcc',
'x-timestamp: 2024-01-16T10:54:21+07:00',
'x-signature: Daaad/WOCbN0cdFdd9wXJUaJxeEeodDANqrlKYaw98MSZLdInfIGPLxIFxqROb2dnbI/FEqeSwKWdX9Hn0X/1g==',
'x-partner-id: 6c57db4e-9e11-4951-9bcf-d6f177dafbcc',
'channel-id: 23412',
'x-external-id: 2024-05-15T07:52:10.297Z',
'Content-Type: application/json',
'Authorization: Bearer 6430fe8b-79d5-4e58-a337-6eb498e117a5'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': '../v1.0/qr/qr-mpm-generate-list',
'headers': {
'x-client-key': '6c57db4e-9e11-4951-9bcf-d6f177dafbcc',
'x-timestamp': ' 2024-01-16T10:54:21+07:00',
'x-signature': 'Daaad/WOCbN0cdFdd9wXJUaJxeEeodDANqrlKYaw98MSZLdInfIGPLxIFxqROb2dnbI/FEqeSwKWdX9Hn0X/1g==',
'x-partner-id': '6c57db4e-9e11-4951-9bcf-d6f177dafbcc',
'channel-id': ' 23412',
'x-external-id': '2024-05-15T07:52:33.785Z',
'Content-Type': ' application/json',
'Authorization': 'Bearer 6430fe8b-79d5-4e58-a337-6eb498e117a5'
},
body: '{\n "dateGenerate": "2024-03-15T00:00:00+07:00",\n "additionalInfo": {\n "merchantId": "121xxxx"\n }\n}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "../v1.0/qr/qr-mpm-generate-list"
method := "POST"
payload := strings.NewReader(`{
"dateGenerate": "2024-03-15T00:00:00+07:00",
"additionalInfo": {
"merchantId": "121xxxx"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("x-client-key", "6c57db4e-9e11-4951-9bcf-d6f177dafbcc")
req.Header.Add("x-timestamp", " 2024-01-16T10:54:21+07:00")
req.Header.Add("x-signature", "Daaad/WOCbN0cdFdd9wXJUaJxeEeodDANqrlKYaw98MSZLdInfIGPLxIFxqROb2dnbI/FEqeSwKWdX9Hn0X/1g==")
req.Header.Add("x-partner-id", "6c57db4e-9e11-4951-9bcf-d6f177dafbcc")
req.Header.Add("channel-id", " 23412")
req.Header.Add("x-external-id", "2024-05-15T07:52:46.065Z")
req.Header.Add("Content-Type", " application/json")
req.Header.Add("Authorization", "Bearer 6430fe8b-79d5-4e58-a337-6eb498e117a5")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Response
Parameter | Tipe Data | Deskripsi |
---|---|---|
responseCode | String | Kode response |
responseMessage | String | Pesan response |
dataDetail | Array | Untuk Memuat Data List |
id_qr | String | Kode Unik Dari QRIS yang telah di buat |
type | String | Tipe Dari Jenis QRIS |
generated_time | Date | waktu dari pembuatan QRIS |
expired_time | Date | waktu berakhir dari QRIS - jika statis maka akan berisi null |
amount | String | Jumlah dari nominal QRIS. |
{
"responseCode": "2009000",
"responseMessage": "Successful",
"dataDetail": [
{
"id_qr": "10092081",
"type": "dynamic",
"generate_time": "2024-05-15 14:20:49",
"expired_date": "2024-05-14 14:20:49",
"amount": "9000.00"
},
{
"id_qr": "10092070",
"type": "static",
"generate_time": "2024-05-15 09:14:20",
"expired_date": null,
"amount": null
}
]
}
}
List Response Code
Response Code | Response Message | Description |
---|---|---|
2009000 | Success | |
4009001 | Invalid field format { field name } | |
4019000 | Unauthorized. Invalid Signature | X-Signature salah |
4099000 | Cannot use same X-EXTERNAL-ID in same day | X-External-ID sudah pernah digunakan di hari yang sama |
4049001 | Bad Request | Request header ada yang salah / kurang |
4049000 | Unauthorized. Client Forbidden Access API | Partner tidak dapat mengakses api terkait |
4039019 | Merchant Blacklisted | Merchant telah di blacklist |
4049001 | Transaction Not Found | Data Generate QR tidak di temukan di tanggal tersebut |